package com.java.demo;

import java.time.LocalDateTime;

/*
* 普通的文章实体类
 */
public class ArticlesInfo {
    private int id;
    private String title;
    private String content;
    private LocalDateTime time;

    @Override
    public String toString() {
        return "ArticlesInfo{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", time=" + time +
                '}';
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public int getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getContent() {
        return content;
    }

    public LocalDateTime getTime() {
        return time;
    }
}
